<?php 

class ComponentConstructionException extends Exception {

	private $objeto = null;

	function __construct($exception, $objeto = null) {
		$this->exception = $exception;
		$this->objeto = $objeto;
	}

	function display() {
		print "ComponentConstructionException: $this->exception\n";
		if ($this->objeto != null) {
			print "<PRE>";
			print_r($this->objeto);
			print "</PRE>";
		}
	}
}
?>